'use strict';

/**
 * @ngdoc function
 * @name appApp.controller:ProfessionProfessionDetailCtrl
 * @description
 * # ProfessionProfessionDetailCtrl
 * Controller of the appApp
 */
angular.module('appApp')
  .controller('ProfessionProfessionDetailCtrl', function ($scope,$routeParams,onlineFac) {
    $scope.article = {};
    $scope.getArticle = function(){
	    onlineFac.article.articledetail({
	      article_id: $routeParams.articleId
	    },function(data){
	      $scope.article = data.info;
	      $scope.current_category = $scope.article.category_id;
	      console.log($scope.current_category);
	    },function(data){
	      alert(data.data.info);
	    });
	  }

	  $scope.getCategoty = function(){
	  	onlineFac.article.categorylist({
	      listId:46
	    },function(data){
	      $scope.express_list = data.info;
	      $scope.getArticle();
	    },function(data){
	      alert(data.data.info);
	    });
	  }
  });
